﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsDetails.ascx.cs" Inherits="AdminControl_NewsDetails" %>
<style type="text/css">


    .style1
    {
        width: 100%;
    }
    </style>
<p style="text-align: center">
    Danh Sách Tin Tức</p>
<p style="text-align: center">
    <asp:GridView ID="newsdetails" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None">
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:BoundField DataField="writer" HeaderText="Người viết" />
            <asp:BoundField DataField="title" HeaderText="Tiêu đề" />
            <asp:BoundField DataField="summary" HeaderText="Tóm tắt" />
            <asp:BoundField DataField="postdate" HeaderText="Ngày đăng" />
            <asp:TemplateField HeaderText="Tùy Chỉnh">
                <ItemTemplate>
                    <table class="style1">
                        <tr>
                            <td align="center">
                                <asp:HyperLink ID="delete" runat="server" NavigateUrl="<%# Bind('delete') %>">Xóa</asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:HyperLink ID="edit" runat="server" NavigateUrl="<%# Bind('edit') %>">Chỉnh sửa</asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>








</p>
